app.controller('BusShiftTplDateListCtrl', function ($scope, $modalInstance, toaster, param,ajax) {

    $scope.param = param;
    if ($scope.param.data == null) {
        $scope.param.data = {};
    }
	
	
    $scope.events=$scope.param.list;
    
    //不知道去google调用了啥反正为空数据也能显示 。。。
    $scope.eventSource ={
//          url: "http://www.google.com/calendar/feeds/usa__en%40holiday.calendar.google.com/public/basic",  
//          className: 'gcal-event',           // an option!  
//          currentTimezone: 'America/Chicago' // an option!     		
    };  
    
    /* config object */
    $scope.uiConfig = {
      calendar:{
        height: 500,
        editable: false,
        header:{
          left: 'prev',
          center: 'title',
          right: 'next'
        },
        locale:'zh-cn',
      }
    };
    
    $scope.eventSources =[$scope.events]; 

    
    $scope.today = function(calendar) {
        $('.calendar').fullCalendar('today');
      };
    
    $scope.cancel = function () {
        $modalInstance.dismiss('cancel');
    };
});